/* 布局与导航样式 */
:root {
    --navbar-bg: #24292e;
    --navbar-text: #ffffff;
    --navbar-hover: #58a6ff;
    --footer-bg: #f6f8fa;
    --footer-text: #586069;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

/* 页面基本样式 */
html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
}

/* 导航栏 */
.navbar {
    background-color: var(--navbar-bg);
    padding: 0;
    color: var(--navbar-text);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 32px;
    margin-right: 10px;
}

.navbar-nav {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-nav li {
    margin-left: 30px;
    position: relative;
}

.navbar-nav a {
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    padding: 8px 0;
    display: block;
    position: relative;
}

.navbar-nav a:hover {
    color: var(--navbar-hover);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navbar-hover);
    transition: width var(--transition-speed);
}

.navbar-nav a:hover::after {
    width: 100%;
}

/* 移动菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--navbar-text);
    transition: all 0.3s ease;
}

/* 页脚 */
.footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    color: var(--footer-text);
    flex-shrink: 0;
    padding: 40px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: var(--footer-text);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9em;
    transition: color var(--transition-speed);
}

.footer-nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.85em;
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-container {
        height: 56px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .navbar-nav {
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background-color: var(--navbar-bg);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-sm);
    }
    
    .navbar-nav.active {
        max-height: 300px;
        padding: 10px 0;
    }
    
    .navbar-nav li {
        margin: 0;
    }
    
    .navbar-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav li:last-child a {
        border-bottom: none;
    }
} 